package com.wanmait.gohome.pojo;

import java.io.Serializable;
import java.util.Date;

public class Admin implements Serializable {
    /**
	* 
	*/
    private Integer id;

    /**
	* 用户名
	*/
    private String name;

    /**
	* 密码
	*/
    private String password;

    /**
	* 添加的时间
	*/
    private Date regTime;

    /**
	* 当前登陆时间
	*/
    private Date loginTime;

    /**
	* 最后一次登陆的时间
	*/
    private Date lastLoginTime;

    /**
	* 当前登陆IP
	*/
    private String loginIP;

    /**
	* 最后一个登陆的IP
	*/
    private String lastLoginIP;

    /**
	* 是否禁用
	*/
    private Boolean enable;

    /**
	* 
	*/
    private Integer mark;

    /**
	* 登陆账户
	*/
    private String account;

    /**
	* 
	*/
    private Integer loginNum;
    private String deleteReason;

    public String getDeleteReason() {
        return deleteReason;
    }

    public void setDeleteReason(String deleteReason) {
        this.deleteReason = deleteReason;
    }

    public Integer getLoginNum() {
        return loginNum;
    }

    public void setLoginNum(Integer loginNum) {
        this.loginNum = loginNum;
    }

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getRegTime() {
        return regTime;
    }

    public void setRegTime(Date regTime) {
        this.regTime = regTime;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getLoginIP() {
        return loginIP;
    }

    public void setLoginIP(String loginIP) {
        this.loginIP = loginIP;
    }

    public String getLastLoginIP() {
        return lastLoginIP;
    }

    public void setLastLoginIP(String lastLoginIP) {
        this.lastLoginIP = lastLoginIP;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public Integer getMark() {
        return mark;
    }

    public void setMark(Integer mark) {
        this.mark = mark;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }



    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", password=").append(password);
        sb.append(", regTime=").append(regTime);
        sb.append(", loginTime=").append(loginTime);
        sb.append(", lastLoginTime=").append(lastLoginTime);
        sb.append(", loginIP=").append(loginIP);
        sb.append(", lastLoginIP=").append(lastLoginIP);
        sb.append(", enable=").append(enable);
        sb.append(", mark=").append(mark);
        sb.append(",deleteReason=").append(deleteReason);
        sb.append(", account=").append(account);
        sb.append(", loginNum=").append(loginNum);
        sb.append("]");
        return sb.toString();
    }
}